package org.authsum.stitches.main;

import java.net.MalformedURLException;
import java.net.URL;

import javax.xml.namespace.QName;

import org.authsum.stitches.services.*;

public class StitchesService extends StitchesService_Service {

	public StitchesService(String theurl) {
        super(getUrl(theurl), new QName("http://services.stitches.authsum.org", "StitchesService"));
	}
	
	public static  URL getUrl(String theurl) {
        URL url = null;
        try {
            URL baseUrl;
            baseUrl = org.authsum.stitches.services.StitchesService_Service.class.getResource(".");
            //"http://localhost:8080/stitches-server/services/StitchesService?wsdl"
            url = new URL(baseUrl, theurl);
            return url;
        } catch (MalformedURLException e) {
            e.printStackTrace();
            return null;
        }
        
            
	}
}
